// 角色相关API
import HTTP from "@/utils/http";
// 角色列表
export const list = (params) => HTTP.get("/role/list", { params });
// 删除角色
export const remove = (params) => HTTP.post("/role/remove", params);
// 角色菜单
export const MneuList = (params) => HTTP.get("/user/GetAdminRouterList", { params });
// 添加角色
export const add = data => HTTP.post("/role/add", data)
// 角色信息
export const info = data => HTTP.post("/role/info", data)
// 接口权限列表
export const pathmanageList = data => HTTP.post("/role/pathmanageList", data)
// 添加接口权限
export const addPathAuth = data => HTTP.post("/role/addPathAuth", data)
// 添加所有接口权限
export const addAllPathAuth = data => HTTP.post("/role/addAllPathAuth", data)
// 删除接口权限
export const removePathAuth = data => HTTP.post("/role/removePathAuth", data)
// 删除所有接口权限
export const removeAllPathAuth = data => HTTP.post("/role/removeAllPathAuth", data)

export default {
  add,
  list,
  remove,
  MneuList,
  pathmanageList,
};
